<div class="crumb-wrap">
    <div class="crumb-list"><i class="icon-font"></i><a href="<?=site_url('admini') ?>">首页</a><span class="crumb-step">&gt;</span><span>系统设置</span></div>
</div>
<div class="result-wrap">
    <div class="result-content">
        <form action="<?=site_url('admini/setup/index')?>" method="post" id="myform" name="myform" enctype="multipart/form-data">
            <table class="insert-tab" width="100%">
                <tbody>
                    <tr>
                        <th><i class="require-red">*</i>站点域名：</th>
                        <td>
                            <input class="common-text required" id="title" name="url" size="50" value="<?=$url?>" type="text">
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>网站名称：</th>
                        <td>
                            <input class="common-text required" id="title" name="title" size="50" value="<?=$title?>" type="text">
                        </td>
                    </tr>
                    <tr>
                        <th>网站描述：</th>
                        <td>
                            <input class="common-text required" id="title" name="description" size="50" value="<?=$description?>" type="text">
                            <span>*用于前端，主要作用是搜索引擎收录优化，一般在120个字符以内</span>
                        </td>
                    </tr>
                    <tr>
                        <th>网站关键字：</th>
                        <td>
                            <input class="common-text required" id="title" name="keywords" size="50" value="<?=$keywords?>" type="text">
                            <span>*用于前端，主要作用是搜索引擎收录优化，注意每个关键词之间用“,”隔开</span>
                        </td>
                    </tr>
                    <th width="120"><i class="require-red">*</i>站点状态：</th>
                            <td>
                                <select name="status" id="catid" class="required">
                                    <option value="1">开启</option>
                                    <option value="0" <?=$status == 0 ? 'selected' : '' ;?>>关闭</option>
                                </select>
                                <span>*但站点关闭的时候，前端页面不予显示</span>
                            </td>
                        </tr>
                    <tr>
                        <th></th>
                        <td>
                            <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                            <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                            <span>前面有“*”符号的内容不能为空</span>
                        </td>
                    </tr>
                </tbody></table>
        </form>
    </div>
</div>
<script>
    $('#myform').submit(function() {
        $(this).ajaxSubmit(function(data){
            if(data == 1){
                layer.alert('修改成功！',{
                    icon:1,
                });
            }else{
                layer.alert(data,{
                    icon:2,
                });
            }
        })
        return false;
    })
</script>